import  {createStore} from 'vuex'

import Cart from '@/store/cart/index.js'
import Address from '@/store/address/index.js'
// 创建一个新的store实例
const store = createStore({
	state(){
		return{
			count:0
		}
	},
	mutations:{
		increment(state){
			state.count++
		}
	},
	modules:{
		cart: Cart.cart,
		address:Address.address
	}
})
export default{
	store
}